package com.wwy.service;

import com.wwy.dto.sys.UserDto;
import com.wwy.mapper.sys.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public UserDto getUser(Integer userId) {
        List<String> userProjectIds = userMapper.getUserProjectIds(userId);
        System.out.println("userProjectIds:" + userProjectIds);
        return userMapper.selectById(userId);

    }
}
